package vn.fpt.fsoft.bl.impl;

import java.util.List;

import vn.fpt.fsoft.bl.ManageUsersBL;
import vn.fpt.fsoft.dao.ManageUsersDAO;
import vn.fpt.fsoft.entity.AdminAccountInfo;
import vn.fpt.fsoft.entity.UserAccountInfo;

public class ManageUsersBLImpl implements ManageUsersBL{
	ManageUsersDAO manageUsersDAO = null;
	
		
	public void setManageUsersDAO(ManageUsersDAO manageUsersDAO) {
		this.manageUsersDAO = manageUsersDAO;
	}
	
	

	public ManageUsersDAO getManageUsersDAO() {
		return manageUsersDAO;
	}



	@Override
	public void addAdminUser(AdminAccountInfo adminAccountInfo) {
		manageUsersDAO.insertAdminUser(adminAccountInfo);
	}

	@Override
	public void deleteAdmin(AdminAccountInfo admin) {
		manageUsersDAO.deleteAdmin(admin);
		
	}

	@Override
	public void deleteUser(UserAccountInfo user) {
		manageUsersDAO.deleteUser(user);
		
	}

	
	@Override
	public void updateChangedAdminUser(AdminAccountInfo adminAccountInfo) {
		manageUsersDAO.updateChangedAdminUser(adminAccountInfo);
	}

	@Override
	public List<AdminAccountInfo> getAdminList() {
		return manageUsersDAO.getAdminList();
	}



	@Override
	public List<AdminAccountInfo> getContributerList() {
		return manageUsersDAO.getContributerList();	
	}



	@Override
	public List<UserAccountInfo> getMemberList() {
		return manageUsersDAO.getMemberList();
	}



	@Override
	public List<UserAccountInfo> getUserById(String userId) {
		return manageUsersDAO.getUserById(userId);
	}



	@Override
	public List<AdminAccountInfo> getAdminById(String adminId) {
	return manageUsersDAO.getAdminById(adminId);
	}

	
}
